package com.jx.driving.protocol.terminal.annotation;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import com.jx.driving.protocol.terminal.codec.DwordFieldReaderWriter;
import com.jx.driving.protocol.terminal.codec.FieldReaderWriter;

/**
 * DWORD类型标记
 * 
 * 支持类型 long,float,double
 * 
 * @author shenliuyang
 *
 *         2016年7月29日下午6:06:10
 */
@Target(value = { java.lang.annotation.ElementType.FIELD })
@Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
public @interface DwordAnnotation {
    int value() default 4;

    Class<? extends FieldReaderWriter> codec() default DwordFieldReaderWriter.class;

    /**
     * 设置当前字段顺序
     */
    int order();
}